<!DOCTYPE html>
<html lang='en'>

<head>
  <meta charset='UTF-8'>
  <meta name='viewport' content='width=device-width, initial-scale=1.0'>
  <title></title>
  <script type='text/javascript' src='js/vue.js'></script>
  <style>
    div {
      border: 1px solid #6a6a6a;
      margin: 10px;
    }
  </style>
</head>

<body>
  <div id='app'>
    <div>
      <fa></fa>
    </div>
  </div>
  <script type='text/javascript'>
    var son = {
      data() {
        return {
          msg: 'This is a 苏明成'
        }
      },
      template: '<div>{{msg}}</div>'
    }

    var daughter = {
      data() {
        return {
          msg: 'This is a 苏明玉'
        }
      },
      template: '<div>{{msg}}</div>'
    }

    var fa = {
      data() {
        return {
          msg: 'This is a 苏大强'
        }
      },
      template: `
        <div>
          {{msg}}
          <son></son>
          <daughter></daughter>
        </div>`,
      components: {
        son,
        daughter
      }
    }

    var vm = new Vue({
      el: '#app',
      data: {

      },
      methods: {},
      components: {
        fa
      }
    });
  </script>
</body>

</html>